package com.xiaouyudeguang.common.exception;

import org.springframework.security.core.AuthenticationException;

public class LoginAuthenticationException extends AuthenticationException{

    public static final AuthenticationException TENANT_INVALID = new LoginAuthenticationException("tenantId invalid");

    public static final AuthenticationException CLIENT_INVALID = new LoginAuthenticationException("clientId invalid");

    public static final AuthenticationException USER_INVALID = new LoginAuthenticationException("user invalid");

    public static final AuthenticationException LOGIN_ERROR = new LoginAuthenticationException("login error");

    public LoginAuthenticationException(String msg, Throwable cause) {
        super(msg, cause);
    }

    public LoginAuthenticationException(String msg) {
        super(msg);
    }
}
